#include <stdio.h>
#include <stdlib.h>
#include "RBTree.h"

void test01() {
	int data[] = {50, 40, 65, 35, 45, 25, 39, 20};
	RBTree* rbTree = initRBTree();
	for (int i = 0; i < sizeof(data) / sizeof(data[0]); ++i) {
		insertRBTree(rbTree, data[i]);
	}
	printRBTree(rbTree);
	printf("===================\n");
	deleteRBTree(rbTree, 35);
	printRBTree(rbTree);
	releaseRBTree(rbTree);
}

int main() {
	test01();

	return 0;
}
